﻿
namespace Oddo.Concept.Crm.Common.Presentation.Infrastructure
{
    using DevExpress.Xpf.NavBar;
    using Microsoft.Practices.Prism.Regions;

    public class NavBarControlAdapter : RegionAdapterBase<NavBarControl>
    {
        public NavBarControlAdapter(IRegionBehaviorFactory behaviorFactory)
            : base(behaviorFactory)
        {
        }

        protected override void Adapt(IRegion region, NavBarControl regionTarget)
        {
            regionTarget.ItemsSource = region.Views;
        }
        protected override IRegion CreateRegion()
        {
            return new Region();
        }
    }
}